﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Jamhee.Noctiluca.LightWiki.Markup
{
    class HorizoneLine : WikiMarkup
    {
        private const string HORIZON_LINE = @"^\s*----\s*$";

        protected override string ConvertMarkup(string text, string docFolder, Uri url, MarkupStack stack, Regex regex)
        {
            return regex.Replace(text, "<hr>");
        }

        protected override string MarkupRegEx
        {
            get { return HORIZON_LINE; }
        }

        public override bool AddParagraphMarkup
        {
            get { return false; }
        }
    }
}
